﻿using FlowCanvas.Nodes;
using LogSystem;
using NodeCanvas.Framework;
using ParadoxNotion.Design;
using Yoozoo.Gameplay.Liberty;
using Yoozoo.Gameplay.Liberty.AI;

namespace Yoozoo.Gameplay.Liberty.Nodes
{
    [Category("Ggame")]
    public class SetAIPathPerformanceParams : CallableActionNode<bool, bool, float>
    {
        public override void Invoke(bool isOpenPerformanceMode, bool overrideUpdateDuration, float updateDuration)
        {
            LibertyConst.IsOpenAIPathPerformanceMode = isOpenPerformanceMode;
            LibertyConst.OverrideAIPathGravityUpdateDuration = overrideUpdateDuration;
            LibertyConst.AIPathGravityUpdateDuration = updateDuration;
        }
    }
}